from stealth import *
_targetValue = 99;
_currentSkillValue = 0
while _currentSkillValue < _targetValue:
  _currentSkillValue = GetSkillValue('Necromancy')
  if TargetPresent():
    CancelWaitTarget()
  if _currentSkillValue < 21:
    Cast('Curse Weapon')
  elif _currentSkillValue < 41:
    Cast('Wraith Form')
  elif _currentSkillValue < 71:
    Cast('Horrific Beast')
  elif _currentSkillValue < 100:
    Cast('Lich Form')
  elif _currentSkillValue < 120:
    Cast('Vampiric Embrase')
  Wait(3000);
